using System;
using System.Windows;
using System.Windows.Controls;
namespace Microsoft.Phone.Controls
{
	public class FlickGestureEventArgs : GestureEventArgs
	{
		private Point _velocity;
		public double HorizontalVelocity
		{
			get
			{
				return this._velocity.get_X();
			}
		}
		public double VerticalVelocity
		{
			get
			{
				return this._velocity.get_Y();
			}
		}
		public double Angle
		{
			get
			{
				return MathHelpers.GetAngle(this._velocity.get_X(), this._velocity.get_Y());
			}
		}
		public Orientation Direction
		{
			get
			{
				if (Math.Abs(this._velocity.get_X()) < Math.Abs(this._velocity.get_Y()))
				{
					return 0;
				}
				return 1;
			}
		}
		internal FlickGestureEventArgs(Point hostOrigin, Point velocity) : base(hostOrigin, hostOrigin)
		{
			this._velocity = velocity;
		}
	}
}
